<html>
    <script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
    <meta charset="utf-8">
    <title>JS Bin</title>
    
    <style>
        article, aside, figure, footer, header, hgroup, 
        menu, nav, section { display: block; }
    </style>

    <style id="jsbin-css">

    </style>
    <link rel="stylesheet" href="teste_checkbox.css"><script type="text/javascript" async="" src="../js/teste_checkbox.js"></script></head>
<body>
    <input type="checkbox"><label>Item 1vcbc  teste</label>
    <input type="checkbox"><label>Item 2fd</label>
    <input type="checkbox"><label>Item 3</label>
    <input type="checkbox"><label>Item 4</label>
    <input type="checkbox"><label>Item 6</label>
    <input type="checkbox"><label>Item 6</label>
    <input type="checkbox"><label>Item 7</label>
    <input type="checkbox"><label>Item fds8</label>
    <div id="Mensagem">Passou de 3</div>
    
    <script>
        var NumeroMaximo = 3;
        $("input").click(function()
        {
            $("#Mensagem").empty();
            if ($("input").filter(":checked").size() > NumeroMaximo)
            {
                $("#Mensagem").html("Passou de " + NumeroMaximo);
                return false;
            }
        })
    </script>
    <script src="http://static.jsbin.com/js/render/edit.js?3.14.1"></script>
    <script>jsbinShowEdit({"static": "http://static.jsbin.com", "root": "http://jsbin.com", "csrf": "3xZnCphJYC9OgQPc8kE7wC93"});</script><a id="edit-with-js-bin" href="http://jsbin.com/irapu/edit" style="top: 0px;">Edit in JS Bin <img src="http://static.jsbin.com/images/favicon.png" width="16" height="16"></a>
    <script>
        var _gaq = _gaq || [];
        _gaq.push(['_setAccount', 'UA-1656750-34']);
        _gaq.push(['_trackPageview']);

        (function() {
            var ga = document.createElement('script');
            ga.type = 'text/javascript';
            ga.async = true;
            ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
            (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ga);
        })();
    </script>

</body></html>